<%-- 
    Document   : addAbout
    Created on : 13-08-2014, 22:31:34
    Author     : NGOCLINH-PC
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="Data.About"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<div class="tablemember">
    <form action="../ContactPR" method="post" name="formmember">
        <h2 style="padding: 10px; color: #999;">Management Contact Us</h2>
                <hr />
        <table width="100%" border="0" align="center" cellpadding="10" cellspacing="10">
            <%
                About ct = new About();
                ArrayList<About> a = ct.selectContact();
                if (a.size() > 0) {
                    for (int i = 0; i < a.size(); i++) {
                        About pay = a.get(i);
                        out.print("<input type='hidden' name='id' id='id' value='" + pay.getAboutID() + "' />");
            %>

            <tr>
                <td width="10%">About Name:</td>
                <td >
                    <% out.print("<input type='text' name='txtAboutname' id='txtAboutname' value='" + pay.getAboutName() + "'/>");%>
                </td>
            </tr>
            <tr>
                <td width="10%">Content:</td>
                <td >
                    <% out.print("<textarea name='txtContent' class='ckeditor' id='txtContent' cols='45' rows='5'>" + pay.getAboutContent() + "</textarea>");%>
                </td>
            </tr>

            <tr>
                <td>Status:</td>
                <td><%
                    if (pay.getStatus() == 1) {
                        out.print("<input type='radio' name='radio1' id='rdtrangthai' value='1' checked />Show");
                        out.print("<input type='radio' name='radio1' id='rdtrangthai' value='0' />Hidden");
                    } else {
                        out.print("<input type='radio' name='radio1' id='rdtrangthai' value='1' />Show");
                        out.print("<input type='radio' name='radio1' id='rdtrangthai' value='0' checked />Hidden");
                    }

                    %></td>
            </tr>
            <tr align="center">
                <td colspan="2"><input type="submit" name="btnsubmit" id="btnsubmit" value="Submit" /></td>
            </tr>
            <%
                    }
                }
            %>
        </table>

    </form>
</div>
